package com.freesky.biz.icbc.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.freesky.common.annotation.Desensitized;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 积分合伙人（金币奖励记录）
 */
@Data
@ContentRowHeight(22)
@ColumnWidth(25)
@HeadRowHeight(25)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)//表头样式
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)
public class TIntegralPartnerRecord implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty("记录ID")
    private String id;

    @ExcelProperty("客户电话号码")
    @Desensitized(type = Desensitized.DesensitizedType.PHONE)
    private String custMobile;

    @ExcelProperty("合伙人手机号码")
    @Desensitized(type = Desensitized.DesensitizedType.PHONE)
    private String mobile;

    @ExcelProperty("二级分销")
    private String bindPartnerMobile;

    @ExcelProperty("类型")
    private String flag;

    @ExcelProperty("兑换额(元)")
    private String totalAmt;

    @ExcelProperty("奖励金币")
    private String amt;

    @ExcelProperty("时间")
    private String createDate;

    @ExcelIgnore
    private String partnerId;

    @ExcelIgnore
    private String busiId;

    @ExcelIgnore
    private String bindPartnerId;

    @ExcelIgnore
    private String bindPartnerId1;

    @ExcelIgnore
    private Map<String, Object> params;


    public Map<String, Object> getParams() {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}
